package com.example.statistics.ui.ysy

import com.example.statistics.bean.DefineInputBean
import com.example.statistics.bean.ysy.YsyProductBean
import com.example.statistics.common.BaseInputActivity
import com.example.statistics.net.UrlConfig
import com.example.statistics.weight.TextProcessingView

class ProductAddActivity : BaseInputActivity<YsyProductBean>() {

    override val title: String
        get() = "商品"

    override val url: String
        get() = UrlConfig.YSY_PRODUCT_ADD

    override val inputDataList: List<DefineInputBean>
        get() = listOf(
            DefineInputBean("品名：", "name", TextProcessingView.STYLE_INPUT, isNull = false),
            DefineInputBean("类别：", "type", TextProcessingView.STYLE_SELECTOR, isNull = false,
                singleDialog = Pair(listOf("猪蹄", "猪尾", "猪头", "鸡副")) { _, _ ->
                }),
            DefineInputBean("规格：", "specification", TextProcessingView.STYLE_SELECTOR, isNull = false,
                singleDialog = Pair(listOf("5KG", "10KG", "15KG", "20KG", "25KG", "非定装")) { _, _ ->
                })
        )

}